package com.tql.mall.boss.controller.boss;

import com.tql.mall.boss.service.BaseSaleAttrService;
import com.tql.mall.common.result.R;
import com.tql.mall.model.product.BaseSaleAttr;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
@Api(description = "基本销售属性接口")
@RequestMapping("/boss/boss/baseSaleAttr")
@RestController
public class BaseSaleAttrController {

    @Autowired
    private BaseSaleAttrService baseSaleAttrService;
    @ApiOperation(value = "查询所有的基本销售属性列表")
    @GetMapping("/getBaseSaleAttrList")
    public R<List<BaseSaleAttr>> getBaseSaleAttrList(){
        List<BaseSaleAttr> list = baseSaleAttrService.getBaseSaleAttrList();
        return R.ok(list);
    }


}
